package com.yanqu.road.entity.log.cross.horserun;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;


@FieldTypeAnnotation(desc = "商会马场升级日志", tableName = "t_c_log_horse_run_union_course_level", autoSave = true, dataUpload = true, eventName = "horserun_farmupg", uploadCk = true, isCross = true)
public class LogHorseRunUnionCourseLevelUp extends ServerBaseLog {
    @FieldTypeAnnotation(isIndex = true, desc = "活动id", dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(desc = "商会id", dataAttribute = "guild_id")
    private String unionId;
    @FieldTypeAnnotation(desc = "总最大评分", dataAttribute = "horserun_sumsco")
    private long totalGrade;
    @FieldTypeAnnotation(desc = "旧等级")
    private int oldLevel;
    @FieldTypeAnnotation(desc = "当前等级", dataAttribute = "horserun_farmlv")
    private int nowLevel;

    public LogHorseRunUnionCourseLevelUp() {
    }

    public LogHorseRunUnionCourseLevelUp(int activityId, int groupId, String unionId, long totalGrade, int oldLevel, int nowLevel) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.totalGrade = totalGrade;
        this.oldLevel = oldLevel;
        this.nowLevel = nowLevel;

    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public long getTotalGrade() {
        return totalGrade;
    }

    public void setTotalGrade(long totalGrade) {
        this.totalGrade = totalGrade;
    }

    public int getNowLevel() {
        return nowLevel;
    }

    public void setNowLevel(int nowLevel) {
        this.nowLevel = nowLevel;
    }


    public int getOldLevel() {
        return oldLevel;
    }

    public void setOldLevel(int oldLevel) {
        this.oldLevel = oldLevel;
    }

    @Override
    public long getUserId() {
        return 0;
    }
}
